package com.xiaohu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaohu.entity.Columns;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ColumnsMapper extends BaseMapper<Columns> {

    @Select("select * from information_schema.COLUMNS where TABLE_SCHEMA = #{schema} and TABLE_NAME = #{tableName}")
    List<Columns> getColumnsList(@Param("schema") String schema, @Param("tableName") String tableName);
}
